package itdep.services.address;

import itdep.domain.address.District;
import itdep.domain.address.Region;
import itdep.services.NamedEntityQuery;

/**
 * @author Ivan Khalopik
 * @version $Revision: 42 $ $Date: 2010-06-25 09:12:54 +0000 (Fri, 25 Jun 2010) $
 */
public class DistrictQuery
		extends NamedEntityQuery<District, DistrictQuery>
		implements DistrictFilter {

	private Region region;

	public DistrictQuery() {
		super(District.class);
	}

	@Override
	public Region getRegion() {
		return region;
	}

	public DistrictQuery setRegion(Region region) {
		this.region = region;
		return query();
	}
}
